import http from './index'

// 交易额趋势统计
export const getTradeTrend = ({ startTime, endTime, rangeType }) => {
    return http.get("enttp/count/amount/trend", { startTime, endTime, rangeType })
}

// 订单量趋势统计
export const getOrderTrend = ({ startTime, endTime, rangeType }) => {
    return http.get("enttp/count/orders/trend", { startTime, endTime, rangeType })
}

// 日活用户趋势统计(近30天)
export const getUserActivityTrend = () => {
    return http.get("enttp/count/activity/trend")
}

// 查看当前阶段订单统计数据
export const getCurrentOrderCount = ({ type }) => {
    return http.get("enttp/count/order/" + type)
}